package com.doctor.web.service;

import com.doctor.web.domain.OrderDO;

import java.util.List;

public interface OrderService {
    void payOrder(OrderDO orderDO);
    boolean removeById(Long id);
    boolean updateById(OrderDO orderDO);
    OrderDO getById(Long id);
    List<OrderDO> list();

    List<OrderDO> getOrdersByUserId(Long userId);

    List<OrderDO> getOrdersByUserIdAndStatus(Long userId, Integer orderStatus);

    boolean updateOrderStatus(Long orderId, Integer orderStatus);

    Long save(Long productId);
}